#include "Metgine/Core/ImageResource.hpp"

namespace Metgine
{
namespace Core
{

ImageResource::ImageResource(int width, int height, bool smooth) :
    Resource(ResourceType::Image)
{

    m_image.Create(width, height);
    m_image.SetSmooth(smooth);

}

ImageResource::ImageResource(const std::string& path) :
    Resource(ResourceType::Image)
{

    m_image.LoadFromFile(path);

}

ImageResource::~ImageResource()
{

}

sf::Image& ImageResource::Image()
{
    return m_image;
}

}; // Core
}; // Metgine
